package cn.fl.customer.service;

import java.util.List;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.customer.vo.CstCorpShrVO;
import fl.customer.facade.customer.condition.CstCorpShrQueryCondition;

/**
 * @Description: 法人股东信息表 客户端服务层接口
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 查询集合：search*
 */
public interface ICstCorpShrService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public CstCorpShrVO selectById(Long id) throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(CstCorpShrVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeByIds(List<Long> idList) throws BaseException;
    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(CstCorpShrVO entity) throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;
    
    /**
     * 分页带条件查询
     * @param page
     * @param t
     * @return
     */
    //public Pager searchList(Pager page, CstCorpShrVO t);
	
	
	/**
     * 查询字典股东类型（CST0013）
     * @return List<KeyValueVO>
     */
    public List<KeyValueVO> searchShrTypCdList() throws BaseException;
    /**
     * 查询字典出资类型（CST0013）
     * @return List<KeyValueVO>
     */
    public List<KeyValueVO> searchContrWayList() throws BaseException;
    /**
     * 根据条件查询
     * @param page
     * @return
     */
    public List<CstCorpShrVO> searchList(CstCorpShrQueryCondition condition) throws BaseException;
	
}
